# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-jam/boost-jam-3.1.9-r1.ebuild,v 1.5 2006/04/01 19:51:55 agriffis Exp $

IUSE=""

inherit eutils versionator

DESCRIPTION="GGobi"
HOMEPAGE="http://www.ggobi.org/"
#MY_PV=${PV%.**}-${PV##*.}
MY_PV=$(replace_version_separator 2 '_' ${PV})
SRC_URI="http://www.ggobi.org/downloads/${PN}-${MY_PV}.tar.bz2"
RESTRICT="nomirror"

LICENSE="as-is"
SLOT="0"

KEYWORDS="~amd64 ~ia64 ~ppc ~x86"

DEPEND=" media-gfx/graphviz
	!dev-util/ggobi-svn"

#src_unpack() {
#	unpack ${A}
#
#	cd ${S}
#	epatch ${FILESDIR}/${P}-dir.patch
#	epatch ${FILESDIR}/${P}-amd64.patch
#}

src_compile() {
	econf \
		--with-all-plugins || die
	emake || die
}

src_install() {
	    make DESTDIR=${D} install
}


#src_install() {
#	dodoc boost-jam.spec Porting LICENSE_1_0.txt
#	dohtml Jam.html
#
#	cd ${S}/bin.linux${ARCH}
#	dobin bjam || die "Unable to install binaries."
#	#cd ${S}
#	#jam mkjambase yyacc || die "Unable to install binaries."
#	/* add check or ebuild will happilly succeed on unsupported archs and install only docs */
#}

#pkg_postinst() {
#	einfo "Sample code is available in /usr/share/boost/v2/example"
#}
